package csel.model;

public abstract class UseableItem extends TakeableItem implements
		java.io.Serializable
{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	public abstract boolean use(Entity e);

	public boolean touch(Entity e)
	{
		this.getLocation().setItem(null);
		carriedBy = e;
		e.getInventory().addUseableItem(this);
		if(location!=null)
		{
			location.setItem(null);
		}
		return (true);
	}
}
